﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using SLRT.usercontrols;

namespace SLRT
{
    /// <summary>
    /// Interaction logic for MainView.xaml
    /// </summary>
    public partial class MainView : UserControl
    {
        public ResultControl resultControl;
        public ButtonBarControl buttonBar;
        public MainView()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MainView_Loaded);
        }

        void MainView_Loaded(object sender, RoutedEventArgs e)
        {
            resultControl = new ResultControl();
            resultControl.Opacity = 0;
            this.MainGrid.Children.Add(resultControl);
            buttonBar = new ButtonBarControl(this.WebcamControl);   
            this.MainGrid.Children.Add(buttonBar);
        }
    }
}
